package com.xxx.controller;


import com.xxx.entity.Dept;
import com.xxx.service.DeptClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DeptController_Consumer_Feign {

    @Autowired
    private DeptClientService deptClientService;

    @RequestMapping("/consumer/dept/list")
    public List<Dept> list(){
        return deptClientService.list();
    }
}
